/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package macyou;

import com.icesoft.faces.component.ext.HtmlOutputText;
import java.util.Date;
import javax.faces.event.ActionEvent;

/**
 *
 * @author macyou
 */
public class UserBean {

    private String name;
    private Date date = new Date();
    private HtmlOutputText text;

    /** Creates a new instance of UserBean */
    public UserBean() {
    }

    /**
     * @return the date
     */
    public Date getDate() {
        return date;
    }

    /**
     * @param date the date to set
     */
    public void setDate(Date date) {
        this.date = date;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the text
     */
    public HtmlOutputText getText() {
        return text;
    }

    /**
     * @param text the text to set
     */
    public void setText(HtmlOutputText text) {
        this.text = text;
    }

    public void change(ActionEvent event) {
        text.setValue(text.getValue()+" click");
    }
}
